Arrays in JavaScript


a. Add element to array





b. Remove element from array

The pop() method removes the last item of an array, and returns that item
The shift() method removes the first item of an array, and returns that item

c. Sort